//
//  IWHViewController.m
//  ILGDemo
//
//  Created by HappyWork on 2018/9/27.
//  Copyright © 2018 Happy. All rights reserved.
//

#import "IWHViewController.h"

@interface IWHViewController ()

@end

@implementation IWHViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    UIView *searchView = [[NSBundle mainBundle] loadNibNamed:@"IWHSearchView" owner:nil options:nil].firstObject;
    [searchView setFrame:self.view.bounds];
    [self.view addSubview:searchView];
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    
    self.navigationController.navigationBar.hidden = YES;
}

- (void)viewWillDisappear:(BOOL)animated {
    [super viewWillDisappear:animated];
    
    self.navigationController.navigationBar.hidden = NO;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
